package com.basic.business.log.service.impl;

import com.basic.business.common.utils.SpringUtils;
import com.basic.business.log.domain.TOrdersLog;
import com.basic.business.log.mapper.ITOrdersLogMapper;
import com.basic.business.log.service.ITOrdersLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.TimerTask;

/**
 * 日志表服务实现类
 *
 * @author zhaoxy_jn@163.com
 */
@Service
public class TOrdersLogServiceImpl implements ITOrdersLogService {

    @Resource
    private ITOrdersLogMapper tOrdersLogMapper;

    @Override
    public void insert(long mainSid, long sid, String content) {
        tOrdersLogMapper.insert(new TOrdersLog(mainSid, sid, content));
    }

    @Override
    public void updateMainSid(long oldSid, long newSid) {
        tOrdersLogMapper.updateMainSid(oldSid, newSid);
    }
}
